<template>
  <Checkbox :value="state" @on-change="onChange"></Checkbox>
</template>

<script>
    export default {
        props: {
            state: {
                type: Boolean,
                default: false
            }
        },
        methods: {
            onChange () {
                this.$emit('onChange')
            }
        }
    }
</script>

<style>

</style>
